package indi.zhifa.study2024.nbr.monitor.gen.monitor.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import indi.zhifa.core.mpenhance.entity.annotations.ZfDbService;
import indi.zhifa.study2024.nbr.monitor.gen.monitor.sys.po.GenMonitorSysDbEntity;
import indi.zhifa.study2024.nbr.monitor.gen.monitor.sys.mapper.GenMonitorSysDbMapper;
import indi.zhifa.study2024.nbr.monitor.gen.monitor.sys.service.IGenMonitorSysDbDbService;
import indi.zhifa.core.mpenhance.service.impl.ZfDbServiceImpl;

import java.util.List;

/**
 * <p>
 * 数据库表 服务实现类
 * </p>
 *
 * @author 织法
 * @since 2024-11-02
 */
@ZfDbService(name="GenMonitorSysDbEntity")
public class GenMonitorSysDbDbServiceImpl extends ZfDbServiceImpl<GenMonitorSysDbMapper, GenMonitorSysDbEntity> implements IGenMonitorSysDbDbService {

    @Override
    public List<GenMonitorSysDbEntity> getGenMonitorSysDbEntityListByProfile(String pProfile) {
        LambdaQueryWrapper<GenMonitorSysDbEntity> queryWrapper = Wrappers.<GenMonitorSysDbEntity>lambdaQuery()
                .eq(GenMonitorSysDbEntity::getProfile, pProfile);
        return list(queryWrapper);
    }
}
